<?php

function ActiveMenu($array) {
    if (!isset($_GET['s'])) {
        return '';
    }
    foreach ($array as $i => $value) {
        if (($_GET['s']) == $array[$i]) {
            return 'active';
        }
    }
    return '';
}

function pensamento_dia() {
    include_once 'pensamentos.php';
    $ANO = (int) date("Y");
    $MES = (int) date("m");
    $DIA = (int) date("d");

    srand($ANO + $MES + $DIA);
    return $pensamentos[rand() % count($pensamentos)];
}
?>